import 'package:flutter/material.dart';

class FormPage extends StatelessWidget {
  final Map arguments;
  const FormPage({super.key,required this.arguments});

  List<Widget> _getListData(){
    List<Widget> data = [];
    for(String str in arguments.values.toList()){
      data.add(ListTile(
        title: Text(str),
      ));
    }
    return data;
  }


  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("我是一个Form表单演示页面"),
      ),
      body: ListView(
        children: _getListData(),
      ),
    );
  }
}
